

<div style="font-size:18px;color:black;padding:5px;padding-top:25px;padding-bottom:10px;">תוצאות חיפוש בעבור '<?php echo $sf_request->getParameter('name');?>'</div>

<?php 
if ($pager->getResults()) {
foreach ($pager->getResults() as $company):

?>

<div style="height:50px;text-align:right;padding-top:5px;">
<div style="float:right;width:95px;padding:3px;"><img src="<?php echo $company->getLogoUrl();?>" height="30" width="90"></div>
<div style="float:right;padding:3px;"><span style="color:#6F6236;font-size:16px;font-weight:bold;"><?php echo link_to($company->getName(),'/company/'.$company->getId());?></span><br><span style="font-size:14px;">
<?php 
echo $company->getDescription();?></span></div>
</div>

<?php endforeach;  } else { ?>
<div style="padding:5px;">
לא נמצאו חברות העונות לשם הזה.
</div>
<?php }?>

<?php if ($pager != false) {?>


						<div style="text-align:right">
							<?php if ($pager->haveToPaginate()): ?>
							  <?php echo link_to('&laquo;', 'search/'.$sf_request->getParameter('name').'?page='.$pager->getFirstPage()) ?>

							<?php echo link_to('&lt;', 'search/'.$sf_request->getParameter('name').'?page='.$pager->getPreviousPage()) ?>
							<span style="font-size:14px;">
							  <?php $links = $pager->getLinks(); foreach ($links as $page): ?>
							   <span style="background-color:#BFBFBF;padding-left:3px;padding-right:3px;border:1px solid grey"> <?php echo ($page == $pager->getPage()) ? $page : link_to($page, 'search/'.$sf_request->getParameter('name').'?page='.$page) ?></span>
							    <?php if ($page != $pager->getCurrentMaxLink()): ?> <?php endif;
							  endforeach;
							  echo link_to('&gt;', 'search/'.$sf_request->getParameter('name').'?page='.$pager->getNextPage()); 
							  echo link_to('&raquo;', 'search/'.$sf_request->getParameter('name').'?page='.$pager->getLastPage()); 
							endif; ?>
							</span>
							</div>


<?php }?>